package com.xy.bizportdemo.fee;

import java.util.List;

/**
 * Created by admin on 2017/10/19 0019.
 */

public class FeeDataEntity {
    /**
     * 默认套餐
     */
    public static final int PLAN_DEFAULT = 1;
    /**
     * 定向套餐
     */
    public static final int PLAN_DIRECTIONAL = 2;
    /**
     * 国际套餐
     */
    public static final int PLAN_INTERNATIONAL = 3;
    /**
     * 闲时套餐
     */
    public static final int PLAN_FREETIME = 4;

    private List<DataPlan> planList;
    private String unit;

    /**
     * 获取流量套餐列表
     *
     * @return
     */
    public List<DataPlan> getPlanList() {
        return planList;
    }

    /**
     * 获取流量单位
     *
     * @return
     */
    public String getUnit() {
        return unit;
    }

    static public class DataPlan {
        private int type;
        private String name;
        private String total;
        private String used;
        private String left;
        private String exceed;

        /**
         * 获取套餐类型
         *
         * @return
         */
        public int getType() {
            return type;
        }

        /**
         * 获取具体套餐名称
         *
         * @return
         */
        public String getName() {
            return name;
        }

        /**
         * 获取套餐总流量
         *
         * @return
         */
        public String getTotal() {
            return total;
        }

        /**
         * 获取已使用流量
         *
         * @return
         */
        public String getUsed() {
            return used;
        }

        /**
         * 获取剩余流量
         *
         * @return
         */
        public String getLeft() {
            return left;
        }

        /**
         * 获取超出部分流量
         *
         * @return
         */
        public String getExceed() {
            return exceed;
        }
    }


}
